package demo07;

import java.util.Random;

/**
 *
 * @author hy
 * @date 2025-03-05
 **/
public abstract class Door {
    public int open(){
        return new Random().nextInt(10);
    }
    public void key(){
        System.out.println("门开了");
        System.out.println("门关上了");
    }
}
